{layout name="layout" /}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            组管理
            
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 后台</a></li>
            <li class="active">课程列表</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- Small boxes (Stat box) -->
        <div class="row">
            <section class="col-lg-6 connectedSortable">
                <h4><strong >添加组员</strong></h4>
                <form action="/index/person/addMember" method="post">
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="请输入用户账号" name="personName">
                    </div>
                    <div class="row">
                        <!-- /.col -->
                        <div class="col-xs-4">
                            <button type="submit" class="btn btn-primary btn-block btn-flat">添加</button>
                        </div>
                        <!-- /.col -->
                    </div>
                </form>
                <h4><strong >组员</strong></h4>
                <!-- Chat box -->
                <div  class="form-control" style="height: 400px; overflow:scroll">
                    <div style="border: 1px  #000000; width: 90%; margin: 0 auto;">
                    <span>
                    <table>
                        <tr >
                            <td style="width: 150px;">ID</td>
                            <td style="width: 150px;">组员</td>
                        </tr>
                        <?php foreach($res as $row): ?>
                        <tr >
                            <td style="width: 150px;">{$row.person_id}</td>
                            <td style="width: 150px;">{$row.name}</td>
                        </tr>
                        <?php endforeach; ?>
                    </table>
                    </span>
                    </div>
                </div>
            </section>
            <section class="col-lg-6 connectedSortable">
                <h4><strong >移除组员</strong></h4>
                <form action="/index/person/delMember" method="post">
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="请输入用户账号" name="personName">
                    </div>
                    <div class="row">
                        <!-- /.col -->
                        <div class="col-xs-4">
                            <button type="submit" class="btn btn-primary btn-block btn-flat">移除</button>
                        </div>
                        <!-- /.col -->
                    </div>
                </form>
            </section>


        </div>
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
